package com.glory.good_dark.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.good_dark.R;
import com.glory.good_dark.entity.ProjectModelEntity;

import java.util.List;

/**
 * FileName: PmQueryListAdapter
 * Author: XJH
 * Date: 2021/2/23 15:38
 * Description:
 * History:
 */
public class PmQueryListAdapter extends BaseQuickAdapter<ProjectModelEntity.ProjectInfoEntity, BaseViewHolder> {

    public PmQueryListAdapter(@Nullable List<ProjectModelEntity.ProjectInfoEntity> data) {
        super(R.layout.adapter_pm_query,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ProjectModelEntity.ProjectInfoEntity item) {
        helper.setText(R.id.tvEqpID,item.getEQP_ID())
                .setText(R.id.tvReason,item.getREASON())
                .setText(R.id.tvState,item.getSTATE())
                .setText(R.id.tvSubmitTime,item.getSUMBITTIME());
    }
}
